LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
lar::dump::VectorDumper< T[3]> Struct Template Reference

#include "DumpUtils.h"

Inheritance diagram for lar::dump::VectorDumper< T[3]>:
lar::dump::ArrayDumper< T const * >

Public Types

using Array_t = T const *
 
using This_t = ArrayDumper< Array_t >
 

Public Member Functions

 VectorDumper (T const *v)
 
void operator() (Stream &&out) const
 Inserts the content of the referenced array into the specified stream. More...
 
 operator std::string () const
 Converts the content of the stored vector into a string. More...
 

Public Attributes

Array_t const & a
 A reference to the array to be printed. More...
 
size_t n
 Number of elements to be printed. More...
 

Detailed Description

template<typename T>
struct lar::dump::VectorDumper< T[3]>

Definition at line 189 of file DumpUtils.h.

Member Typedef Documentation

using lar::dump::ArrayDumper< T const * >::Array_t = T const *
inherited

Definition at line 61 of file DumpUtils.h.

using lar::dump::ArrayDumper< T const * >::This_t = ArrayDumper<Array_t>
inherited

Definition at line 62 of file DumpUtils.h.

Constructor & Destructor Documentation

template<typename T >
lar::dump::VectorDumper< T[3]>::VectorDumper ( T const *  v)
inlineexplicit

Definition at line 190 of file DumpUtils.h.

190 : ArrayDumper<T const*>(v, 3U) {}

Member Function Documentation

lar::dump::ArrayDumper< T const * >::operator std::string ( ) const
inlineexplicitinherited

Converts the content of the stored vector into a string.

Definition at line 81 of file DumpUtils.h.

82  { std::ostringstream sstr; this->operator()(sstr); return sstr.str(); }
void operator()(Stream &&out) const
Inserts the content of the referenced array into the specified stream.
Definition: DumpUtils.h:77
void lar::dump::ArrayDumper< T const * >::operator() ( Stream &&  out) const
inlineinherited

Inserts the content of the referenced array into the specified stream.

Definition at line 77 of file DumpUtils.h.

References lar::dump::details::dumpArray().

78  { details::dumpArray(std::forward<Stream>(out), a, n); }
void dumpArray(Stream &&out, Array &&a, size_t n)
Inserts n of elements of a in the specified stream.
Definition: DumpUtils.h:37
size_t n
Number of elements to be printed.
Definition: DumpUtils.h:65
Array_t const & a
A reference to the array to be printed.
Definition: DumpUtils.h:64

Member Data Documentation

Array_t const& lar::dump::ArrayDumper< T const * >::a
inherited

A reference to the array to be printed.

Definition at line 64 of file DumpUtils.h.

size_t lar::dump::ArrayDumper< T const * >::n
inherited

Number of elements to be printed.

Definition at line 65 of file DumpUtils.h.


The documentation for this struct was generated from the following file: